cmake_minimum_required(VERSION 3.16)

project(main CXX)
# 引入子目录cmake声明文件
include(animal/animal.cmake)
# 使用子目录声明变量
message("animal is " ${animal})
add_executable(main main.cpp ${animal})